feat(docs): Markdown 展示路由源码位置 (issue #5)#196
Open
yourtion wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #196 +/- ##
==========================================
+ Coverage 92.54% 92.56% +0.01%
==========================================
Files 28 28
Lines 2939 2944 +5
Branches 770 772 +2
==========================================
+ Hits 2720 2725 +5
Misses 217 217
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sourceFile(relative/absolute)此前已在注册时采集,但未纳入 DOC_FIELD, 文档生成器拿不到。现加入 DOC_FIELD,并在 Markdown「请求地址」下方输出 「源码位置:<relative>」,便于从文档定位定义代码。无 sourceFile 时不输出。 - 新增 2 个回归测试(有/无 sourceFile) - bump 版本 3.2.1 → 3.2.4,登记 MIGRATION
8249986 to
a311cf3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 issue
Closes #5
改动内容
sourceFile(含relative/absolute,由getCallerSourceLine在路由注册时解析 Error.stack 采集)此前已在 API 构造时记录,但未纳入DOC_FIELD,文档生成器拿不到。sourceFile加入DOC_FIELD源码位置:<relative>sourceFile时不输出该行,行为不变测试
npm run test:lib:317 → 319 全绿tsc --noEmit通过版本
bump 3.2.1 → 3.2.4,已登记 MIGRATION
合并顺序提示
本系列共 4 个 PR,请按版本号顺序合并(3.2.2 → 3.2.3 → 3.2.4 → 3.2.5)。
⚠️ 合并时
MIGRATION.md与package.json可能冲突,需 rebase 解冲突。